<%--
  Created by IntelliJ IDEA.
  User: fujia
  Date: 2016/7/2
  Time: 16:18
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML>
<html>
<%@include file="common/head.jsp"%>
<body>
    <div id="wrapper">
        <%@include file="common/nav.jsp"%>
        <div id="page-wrapper">
            <div class="graphs">
                <div class="xs">
                    <h3>文章管理</h3>
                    <div class="col-md-12 inbox_right">
                        <form action="#" method="GET">
                            <div class="input-group">
                                <input type="text" name="search" class="form-control1 input-search" placeholder="Search...">
                                <span class="input-group-btn">
                                    <button class="btn btn-success" type="button"><i class="fa fa-search"></i></button>
                                </span>
                            </div><!-- Input Group -->
                        </form>
                        <div class="mailbox-content">
                            <%@include file="common/toolbar.jsp"%>

                            <table class="table">
                                <tbody>
                                    <s:iterator value="#session.articles" status="article">
                                        <tr class="unread checked">
                                            <td class="hidden-xs">
                                                <span><s:property value="#session.blockName" /></span>
                                            </td>
                                            <td>
                                                <span><s:property value="title" /></span>
                                            </td>
                                            <td>
                                                <a href="/single.action?article=<s:property value="articleId" />" target="_blank">
                                                    <button type="button" class="btn btn-xs btn-primary">查看</button>
                                                </a>
                                            </td>
                                            <td>
                                                <button type="button" class="btn btn-xs btn-danger delete-article" data-id="<s:property value="articleId" />">删除</button>
                                            </td>
                                            <td>
                                                <span><s:property value="dateAdded" /></span>
                                            </td>
                                        </tr>
                                    </s:iterator>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="clearfix"> </div>
                </div>
            </div>
        </div>
        <!-- /#page-wrapper -->
    </div>
    <!-- /#wrapper -->
    <%@include file="common/script.jsp"%>
</body>
</html>

